<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>逻辑运算符</title>
	</head>
	<body>
		<script type="text/javascript">
			var weather = 'sunny';
			var temp = 32;
			if (weather === 'sunny' && temp > 30) {
					console.log('在家里吹空调');
				}else{
					console.log('天气非常好,可以出去玩耍'); 
				}
			
			// 数学考过80或者英语考过85才可以玩游戏.
			var mathScore = 77;
			var englishScore = 90;
			if(mathScore > 80 || englishScore >= 85){
				console.log('可以玩游戏');
			}else{
				console.log('在家里写作业');
			}
			
			var isLogin = false;
			alert(isLogin);
			if (!isLogin) {
				console.log('用户已经登陆');
			}
			
			
			// && 逻辑与    !true 
		</script>
	</body>
</html>
